package com.gator.mybatis;


import com.gator.mybatis.configuration.Configuration;
import com.gator.mybatis.entity.User;
import com.gator.mybatis.executor.Executor;
import com.gator.mybatis.mapper.BlogMapper;
import com.gator.mybatis.sqlsesson.DefaultSqlSession;

/**
 * @Authror PABLO
 * @Date 2022/4/26 22:18
 * @Desc
 */
public class MybatisTest {

    public static void main(String[] args) {
        DefaultSqlSession defaultSqlSession = new DefaultSqlSession(new Configuration(),new Executor());
        BlogMapper mapper = defaultSqlSession.getMapper(BlogMapper.class);
        User user = mapper.getBlogById(1);
        System.out.println(user.toString());
    }
}
